<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateCaPromotion extends \App\Utils\CreateMigration
{
    function columns(Blueprint $table)
    {
        $table->unsignedBigInteger('hospital_id')->nullable()->comment('医院编号');
        $table->unsignedBigInteger('diseases_id')->nullable()->comment('病种编号');
        $table->unsignedBigInteger('user_id')->nullable()->comment('操作员');
        $table->unsignedBigInteger('sources_id')->nullable()->comment('来源编号');
        $table->integer('zhanshi')->default(0)->comment('展现数量');
        $table->integer('dianji')->default(0)->comment('点击数量');
        $table->integer('duihua')->default(0)->comment('对话数量');
        $table->float('money')->default(0)->comment('消费金额');
        $table->string('ctime')->default('')->comment('数据所属时间');

    }

    function tableInfo()
    {
        return ['ca__promotion', '竞价消费记录'];
    }

    
}
